package com.isoft.c2team3service2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.entity.UserPaidPost;

public interface UserPaidPostService extends IService<UserPaidPost> {
    // 检查用户是否已购买帖子
    boolean hasPaid(Integer userId, Integer postId);

    // 购买帖子（返回是否成功）
    boolean purchasePost(Integer userId, Integer postId);
}